package com.dw.dao;

public class CriteriaStudent {

	private String stId;
	private String stAge;
	private String stName;
	private String stTel;
	private String stSex;
	private String stDept;
	private String stAddress;

	public String getStId() {
		if(stSex == null)
			stSex = "%%";
		else
			stSex = "%" + stId + "%";
		return stId;
	}

	public void setStId(String stId) {
		this.stId = stId;
	}

	public String getStAge() {
		if(stSex == null)
			stSex = "%%";
		else
			stSex = "%" + stAge + "%";
		return stAge;
	}

	public void setStAge(String stAge) {
		this.stAge = stAge;
	}

	
	public String getSex() {
		if(stSex == null)
			stSex = "%%";
		else
			stSex = "%" + stSex + "%";
		return stSex;
	}

	public void setSex(String stSex) {
		this.stSex = stSex;
	}

	public String getstDept() {
		if(stDept == null)
			stDept = "%%";
		else
			stDept = "%" + stDept + "%";
		return stDept;
	}

	public void setstDept(String stDept) {
		this.stDept = stDept;
	}

	public String getstAddress() {
		if(stAddress == null)
			stAddress = "%%";
		else
			stAddress = "%" + stAddress + "%";
		return stAddress;
	}

	public void setstAddress(String stAddress) {
		this.stAddress = stAddress;
	}
	public String getName() {
		if(stName == null)
			stName = "%%";
		else
			stName = "%" + stName + "%";
		return stName;
	}

	public void setName(String stName) {
		this.stName = stName;
	}
	public String getstTel() {
		if(stTel == null)
			stTel = "%%";
		else
			stTel = "%" + stTel + "%";
		return stTel;
	}
	public void setstTel(String stTel) {
		this.stTel = stTel;
	}

	public CriteriaStudent(String stId, String stName, String stTel, String stSex, String stAge, String stDept,
			String stAddress) {
		super();
		this.stId = stId;
		this.stName = stName;
		this.stTel = stTel;
		this.stSex = stSex;
		this.stAge = stAge;
		this.stDept = stDept;
		this.stAddress = stAddress;
	}
}
